package com.cucn.staservice.client;

import com.cucn.commonutils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author KouChaoJie
 * @since: 2021/10/14 19:00
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    /**
     * 查询某一天的注册人数
     *
     * @param day 日期
     * @return 返回注册人数
     */
    @GetMapping("/educenter/member/countRegister/{day}")
    Result countRegister(@PathVariable("day") String day);
}
